#Include <ScreenCapture.au3>
#Include <File.au3>
#Include <Function For PageViewer.au3>
#Include <GuiListView.au3>
#include <Date.au3>

If $bPageViewType <> 1 Then Exit 
$sLogFileName1 = 'PageViewer4'
Common_WriteCurrentFunctionNameToTempTXT($sLogFileName1)

PageViewer4_2_140()
PageViewer4_2_141()
PageViewer4_2_142()
PageViewer4_2_143()
PageViewer4_2_147()
PageViewer4_2_148()
PageViewer4_2_149()
PageViewer4_2_150()
PageViewer4_2_151()
PageViewer4_2_152()
PageViewer4_2_153()
PageViewer4_2_154()
PageViewer4_2_158()
PageViewer4_2_159()
PageViewer4_2_160()
PageViewer4_2_161()
PageViewer4_2_162()
PageViewer4_2_163()
PageViewer4_2_164()
PageViewer4_2_165()
PageViewer4_2_169()
PageViewer4_2_170()
PageViewer4_2_171()
PageViewer4_2_172()
PageViewer4_2_173()
PageViewer4_2_174()
PageViewer4_2_175()
PageViewer4_2_176()
PageViewer4_2_180()
PageViewer4_2_181()
PageViewer4_2_182()
PageViewer4_2_183()
PageViewer4_2_184()
PageViewer4_2_185()
PageViewer4_2_186()
PageViewer4_2_187()
PageViewer4_2_191()
PageViewer4_2_192()
PageViewer4_2_193()
PageViewer4_2_194()
PageViewer4_2_195()
PageViewer4_2_196()
PageViewer4_2_197()
PageViewer4_2_198()
PageViewer4_2_202()
PageViewer4_2_203()
PageViewer4_2_204()
PageViewer4_2_205()
PageViewer4_2_206()
PageViewer4_2_207()
PageViewer4_2_208()
PageViewer4_2_209()
PageViewer4_2_213()
PageViewer4_2_214()
PageViewer4_2_215()
PageViewer4_2_216()
PageViewer4_2_217()
PageViewer4_2_218()
PageViewer4_2_219()
PageViewer4_2_220()
PageViewer4_2_224()
PageViewer4_2_225()
PageViewer4_2_226()
PageViewer4_2_227()
PageViewer4_2_228()
PageViewer4_2_229()
PageViewer4_2_230()
PageViewer4_2_231()
PageViewer4_2_235()
PageViewer4_2_236()
PageViewer4_2_237()
PageViewer4_2_238()
PageViewer4_2_239()
PageViewer4_2_240()
PageViewer4_2_241()
PageViewer4_2_242()
PageViewer4_2_246()
PageViewer4_2_247()
PageViewer4_2_248()
PageViewer4_2_249()
PageViewer4_2_250()
PageViewer4_2_251()
PageViewer4_2_252()
PageViewer4_2_253()
PageViewer4_2_257()
PageViewer4_2_258()
PageViewer4_2_259()
PageViewer4_2_260()
PageViewer4_2_261()
PageViewer4_2_262()
PageViewer4_2_263()
PageViewer4_2_264()
PageViewer4_2_268()
PageViewer4_2_269()
PageViewer4_2_270()
PageViewer4_2_271()
PageViewer4_2_272()
PageViewer4_2_273()
PageViewer4_2_274()
PageViewer4_2_275()
PageViewer4_2_276()
PageViewer4_2_277()
PageViewer4_2_278()
PageViewer4_2_279()
PageViewer4_2_280()
PageViewer4_2_284()
PageViewer4_2_285()
PageViewer4_2_286()
PageViewer4_2_287()
PageViewer4_2_288()
PageViewer4_2_289()
PageViewer4_2_290()
PageViewer4_2_291()
PageViewer4_2_292()
PageViewer4_2_293()
PageViewer4_2_298()
PageViewer4_2_299()
PageViewer4_2_300()
PageViewer4_2_301()
PageViewer4_2_302()
PageViewer4_2_303()
PageViewer4_2_304()
PageViewer4_2_305()
PageViewer4_2_306()
PageViewer4_2_307()
PageViewer4_2_308()
PageViewer4_2_309()
PageViewer4_2_314()
PageViewer4_2_315()
PageViewer4_2_316()
PageViewer4_2_317()
PageViewer4_2_318()
PageViewer4_2_319()
PageViewer4_2_320()
PageViewer4_2_321()
PageViewer4_2_322()
PageViewer4_2_323()
PageViewer4_2_324()
PageViewer4_2_325()
PageViewer4_2_326()
PageViewer4_2_327()
PageViewer4_2_332()
PageViewer4_2_333()
PageViewer4_2_334()
PageViewer4_2_335()
PageViewer4_2_336()
PageViewer4_2_337()
PageViewer4_2_338()
PageViewer4_2_339()
PageViewer4_2_340()
PageViewer4_2_341()
PageViewer4_2_342()
PageViewer4_2_343()
PageViewer4_2_348()
PageViewer4_2_349()
PageViewer4_2_350()
PageViewer4_2_351()
PageViewer4_2_352To360()
PageViewer4_2_361()
PageViewer4_2_362()
PageViewer4_2_363()
PageViewer4_2_364()
PageViewer4_2_365()
PageViewer4_2_366()
PageViewer4_2_367()
PageViewer4_2_368()
PageViewer4_2_369()
PageViewer4_2_373()
PageViewer4_2_374()
PageViewer4_2_375()
PageViewer4_2_376()
PageViewer4_2_377()
PageViewer4_2_378To386()
PageViewer4_2_387()
PageViewer4_2_388()
PageViewer4_2_389()
PageViewer4_2_390()
PageViewer4_2_391()
PageViewer4_2_392()
PageViewer4_2_393()
PageViewer4_2_394()
PageViewer4_2_395()
PageViewer4_2_397()
PageViewer4_2_399()
PageViewer4_2_400()
PageViewer4_2_401()
PageViewer4_2_402()
PageViewer4_2_403()
PageViewer4_2_404To410()
PageViewer4_2_413()
PageViewer4_2_414()
PageViewer4_2_415()
PageViewer4_2_416()
PageViewer4_2_417()
PageViewer4_2_418()
PageViewer4_2_419()
PageViewer4_2_420()
PageViewer4_2_421()
PageViewer4_2_422()
PageViewer4_2_423()
PageViewer4_2_425()
PageViewer4_2_427()
PageViewer4_2_428()
PageViewer4_2_429()
PageViewer4_2_430()
PageViewer4_2_431()
PageViewer4_2_432To440()
PageViewer4_2_441()
PageViewer4_2_442()
PageViewer4_2_443()
PageViewer4_2_444()
PageViewer4_2_445()
PageViewer4_2_446()
PageViewer4_2_447()
PageViewer4_2_448()
PageViewer4_2_449()
PageViewer4_2_451()
PageViewer4_2_453()
PageViewer4_2_454()
PageViewer4_2_455()
PageViewer4_2_457()
PageViewer4_2_458To464()
PageViewer4_2_465()
PageViewer4_2_466()
PageViewer4_2_467()
PageViewer4_2_468()
PageViewer4_2_469()
PageViewer4_2_470()
PageViewer4_2_471()
PageViewer4_2_472()
PageViewer4_2_473()
PageViewer4_2_477()
PageViewer4_2_479()
PageViewer4_2_480()
PageViewer4_2_481()
PageViewer4_2_483()
PageViewer4_2_484()
PageViewer4_2_485()
PageViewer4_2_486()
PageViewer4_2_487()
PageViewer4_2_488()
PageViewer4_2_489()
PageViewer4_2_490()
PageViewer4_2_492()
PageViewer4_2_495()
PageViewer4_2_496()
PageViewer4_2_497()

Func PageViewer4_2_140()
	Local $TestCaseID = '4.2.140'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_141()
	Local $TestCaseID = '4.2.141'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_142()
	Local $TestCaseID = '4.2.142'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_143()
	Local $TestCaseID = '4.2.143'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_144()
	Local $TestCaseID = '4.2.144'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_145()
	Local $TestCaseID = '4.2.145'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_147()
	Local $TestCaseID = '4.2.147'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_148()
	Local $TestCaseID = '4.2.148'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_149()
	Local $TestCaseID = '4.2.149'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_150()
	Local $TestCaseID = '4.2.150'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBApproved')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_151()
	Local $TestCaseID = '4.2.151'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_152()
	Local $TestCaseID = '4.2.152'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_153()
	Local $TestCaseID = '4.2.153'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_154()
	Local $TestCaseID = '4.2.154'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_155()
	Local $TestCaseID = '4.2.155'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_156()
	Local $TestCaseID = '4.2.156'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_158()
	Local $TestCaseID = '4.2.158'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_159()
	Local $TestCaseID = '4.2.159'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_160()
	Local $TestCaseID = '4.2.160'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_161()
	Local $TestCaseID = '4.2.161'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBCompleted",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBCompleted')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_162()
	Local $TestCaseID = '4.2.162'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_163()
	Local $TestCaseID = '4.2.163'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_164()
	Local $TestCaseID = '4.2.164'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_165()
	Local $TestCaseID = '4.2.165'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_166()
	Local $TestCaseID = '4.2.166'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_167()
	Local $TestCaseID = '4.2.167'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_169()
	Local $TestCaseID = '4.2.169'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_170()
	Local $TestCaseID = '4.2.170'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_171()
	Local $TestCaseID = '4.2.171'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_172()
	Local $TestCaseID = '4.2.172'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBConfidential",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBConfidential')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_173()
	Local $TestCaseID = '4.2.173'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_174()
	Local $TestCaseID = '4.2.174'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_175()
	Local $TestCaseID = '4.2.175'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_176()
	Local $TestCaseID = '4.2.176'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_177()
	Local $TestCaseID = '4.2.177'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_178()
	Local $TestCaseID = '4.2.178'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_180()
	Local $TestCaseID = '4.2.180'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_181()
	Local $TestCaseID = '4.2.181'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_182()
	Local $TestCaseID = '4.2.182'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_183()
	Local $TestCaseID = '4.2.183'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBDraft",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBDraft')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_184()
	Local $TestCaseID = '4.2.184'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_185()
	Local $TestCaseID = '4.2.185'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_186()
	Local $TestCaseID = '4.2.186'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_187()
	Local $TestCaseID = '4.2.187'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_188()
	Local $TestCaseID = '4.2.188'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_189()
	Local $TestCaseID = '4.2.189'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_191()
	Local $TestCaseID = '4.2.191'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_192()
	Local $TestCaseID = '4.2.192'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_193()
	Local $TestCaseID = '4.2.193'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_194()
	Local $TestCaseID = '4.2.194'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBFinal",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBFinal')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_195()
	Local $TestCaseID = '4.2.195'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_196()
	Local $TestCaseID = '4.2.196'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_197()
	Local $TestCaseID = '4.2.197'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_198()
	Local $TestCaseID = '4.2.198'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_199()
	Local $TestCaseID = '4.2.199'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_200()
	Local $TestCaseID = '4.2.200'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_202()
	Local $TestCaseID = '4.2.202'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_203()
	Local $TestCaseID = '4.2.203'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_204()
	Local $TestCaseID = '4.2.204'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_205()
	Local $TestCaseID = '4.2.205'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForComment",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForComment')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_206()
	Local $TestCaseID = '4.2.206'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_207()
	Local $TestCaseID = '4.2.207'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_208()
	Local $TestCaseID = '4.2.208'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_209()
	Local $TestCaseID = '4.2.209'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_210()
	Local $TestCaseID = '4.2.210'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_211()
	Local $TestCaseID = '4.2.211'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_213()
	Local $TestCaseID = '4.2.213'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_214()
	Local $TestCaseID = '4.2.214'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_215()
	Local $TestCaseID = '4.2.215'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_216()
	Local $TestCaseID = '4.2.216'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBForPublicRelease')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_217()
	Local $TestCaseID = '4.2.217'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_218()
	Local $TestCaseID = '4.2.218'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_219()
	Local $TestCaseID = '4.2.219'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_220()
	Local $TestCaseID = '4.2.220'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_221()
	Local $TestCaseID = '4.2.221'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_222()
	Local $TestCaseID = '4.2.222'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_224()
	Local $TestCaseID = '4.2.224'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_225()
	Local $TestCaseID = '4.2.225'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_226()
	Local $TestCaseID = '4.2.226'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_227()
	Local $TestCaseID = '4.2.227'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBInformationOnly",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBInformationOnly')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_228()
	Local $TestCaseID = '4.2.228'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_229()
	Local $TestCaseID = '4.2.229'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_230()
	Local $TestCaseID = '4.2.230'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_231()
	Local $TestCaseID = '4.2.231'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_232()
	Local $TestCaseID = '4.2.232'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_233()
	Local $TestCaseID = '4.2.233'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_235()
	Local $TestCaseID = '4.2.235'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_236()
	Local $TestCaseID = '4.2.236'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_237()
	Local $TestCaseID = '4.2.237'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_238()
	Local $TestCaseID = '4.2.238'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotApproved",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotApproved')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_239()
	Local $TestCaseID = '4.2.239'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_240()
	Local $TestCaseID = '4.2.240'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_241()
	Local $TestCaseID = '4.2.241'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_242()
	Local $TestCaseID = '4.2.242'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_243()
	Local $TestCaseID = '4.2.243'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_244()
	Local $TestCaseID = '4.2.244'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_246()
	Local $TestCaseID = '4.2.246'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_247()
	Local $TestCaseID = '4.2.247'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_248()
	Local $TestCaseID = '4.2.248'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_249()
	Local $TestCaseID = '4.2.249'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBNotForPublicRelease",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBNotForPublicRelease')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_250()
	Local $TestCaseID = '4.2.250'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_251()
	Local $TestCaseID = '4.2.251'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_252()
	Local $TestCaseID = '4.2.252'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_253()
	Local $TestCaseID = '4.2.253'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_254()
	Local $TestCaseID = '4.2.254'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_255()
	Local $TestCaseID = '4.2.255'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_257()
	Local $TestCaseID = '4.2.257'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_258()
	Local $TestCaseID = '4.2.258'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_259()
	Local $TestCaseID = '4.2.259'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_260()
	Local $TestCaseID = '4.2.260'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBPreliminaryResults",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBPreliminaryResults')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_261()
	Local $TestCaseID = '4.2.261'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus() 
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_262()
	Local $TestCaseID = '4.2.262'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_263()
	Local $TestCaseID = '4.2.263'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_264()
	Local $TestCaseID = '4.2.264'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_265()
	Local $TestCaseID = '4.2.265'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_266()
	Local $TestCaseID = '4.2.266'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_268()
	Local $TestCaseID = '4.2.268'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_269()
	Local $TestCaseID = '4.2.269'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_270()
	Local $TestCaseID = '4.2.270'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_271()
	Local $TestCaseID = '4.2.271'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Stamp" on Task Pane,select "SBVoid",then add it in pageview'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('SBVoid')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_272()
	Local $TestCaseID = '4.2.272'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Check default setting"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Color:Blue,Opacity:100%,Icon:PushPin(The image is 'File Attachment Properties' window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFileAttachmentPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_273()
	Local $TestCaseID = '4.2.273'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Change the  'Color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The 'File Attachment icon will change the correct color(The File Attachment icon is green)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sFileAttachmentPropertiesWnd) Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_274()
	Local $TestCaseID = '4.2.274'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sFileAttachmentPropertiesWnd) Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_275()
	Local $TestCaseID = '4.2.275'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sFileAttachmentPropertiesWnd) Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_276()
	Local $TestCaseID = '4.2.276'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sFileAttachmentPropertiesWnd) Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_277()
	Local $TestCaseID = '4.2.277'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "'Icon' select 'Graph'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The icon will change to the correct one.(The file attached icon is Graph)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ChangeAttachedFileIcon($TestCaseID, $sLogFileName1, 'Graph') Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_278()
	Local $TestCaseID = '4.2.278'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "'Icon' select 'Paperclip'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The icon will change to the correct one.(The file attached icon is Paperclip)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ChangeAttachedFileIcon($TestCaseID, $sLogFileName1, 'Paperclip') Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_279()
	Local $TestCaseID = '4.2.279'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "'Icon' select 'PushPin'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The icon will change to the correct one.(The file attached icon is PushPin)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ChangeAttachedFileIcon($TestCaseID, $sLogFileName1, 'PushPin') Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_280()
	Local $TestCaseID = '4.2.280'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "'Icon' select 'Tag'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The icon will change to the correct one.(The file attached icon is Tag)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ChangeAttachedFileIcon($TestCaseID, $sLogFileName1, 'Tag') Then Return False
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_282()
	Local $TestCaseID = '4.2.282'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Click 'General tab'" 
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(The Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ClickTabInWindow($sFileAttachmentPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sFileAttachmentPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFileAttachmentPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_284()
	Local $TestCaseID = '4.2.284'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Single click this 'File Attachment'" 
	Local $sStep4 = '4:'   &  "Move it"
	Local $sRes   = 'Res:' &  'The icon will move.(The file attched move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	MouseClickDrag('left', 372, 259, 920, 923)
	MouseClick('left',  372, 259)
	Common_SleepInSeconds(0.3)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_285()
	Local $TestCaseID = '4.2.285'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Right click this annotation" 
	Local $sStep4 = '4:'   &  "Click Right contenet menu"
	Local $sRes   = 'Res:' & "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	RightClickAddedFileAttached()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_286()
	Local $TestCaseID = '4.2.286'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Right click this annotation" 
	Local $sStep4 = '4:'   &  "Click 'Properties'"
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	RightClickAddedFileAttached()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_287()
	Local $TestCaseID = '4.2.287'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Right click this annotation" 
	Local $sStep4 = '4:'   &  "Click 'Delete'"
	Local $sRes   = 'Res:' & "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	RightClickAddedFileAttached()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_288()
	Local $TestCaseID = '4.2.288'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " File Attachment" on Task Pane, add it to pageview.The open dialog will pop up.'
	Local $sStep2 = '2:'   &  "Select any one  file,click Open button,the File attachment properties dialog will pop up"
	Local $sStep3 = '3:'   &  "Right click this annotation" 
	Local $sStep4 = '4:'   &  "Click  'Open Attachment '"
	Local $sRes   = 'Res:' &  "The attachment will open."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AttachFileForPDF($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'JPEG.jpg')
	If Not ClickOKBtnInFileAttachmentPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	RightClickAddedFileAttached()
	
	;Opne attached File
	For $i = 0 to 2
		Send('{UP}')
		Common_SleepInSeconds(0.1)
	Next
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	
	If WinExists('JPEG.jpg - Windows Photo Viewer') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_289()
	Local $TestCaseID = '4.2.289'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  "" 
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & "Color:Red,Opacity:100%(The image is Insert Caret Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowOfInsertCaretBtn($TestCaseID, $sLogFileName1)  Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sInsertCaretPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_290()
	Local $TestCaseID = '4.2.290'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the  'Color'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The stick note will change the correct color(The color of Caret is green)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowOfInsertCaretBtn($TestCaseID, $sLogFileName1)  Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sInsertCaretPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sInsertCaretPropertiesWnd) Then Return False
	AddCaretInPDF()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_291()
	Local $TestCaseID = '4.2.291'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowOfInsertCaretBtn($TestCaseID, $sLogFileName1)  Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sInsertCaretPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sInsertCaretPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_292()
	Local $TestCaseID = '4.2.292'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'" 
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowOfInsertCaretBtn($TestCaseID, $sLogFileName1)  Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sInsertCaretPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sInsertCaretPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_293()
	Local $TestCaseID = '4.2.293'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowOfInsertCaretBtn($TestCaseID, $sLogFileName1)  Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sInsertCaretPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sInsertCaretPropertiesWnd) Then Return False
	AddCaretInPDF()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_295()
	Local $TestCaseID = '4.2.295'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' & 'All content is saved.(Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddCaretInPDF()
	If Not DoubleClickAddedCaret($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sInsertCaretPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sInsertCaretPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sInsertCaretPropertiesWnd) Then Return False
	If Not DoubleClickAddedCaret($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sInsertCaretPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sInsertCaretPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_298()
	Local $TestCaseID = '4.2.298'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  "Click Right contenet menu"
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddCaretInPDF()
	RightClickAddedCaret()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_299()
	Local $TestCaseID = '4.2.299'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  "Click 'Properties'"
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddCaretInPDF()
	RightClickAddedCaret()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_300()
	Local $TestCaseID = '4.2.300'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Insert Caret" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click this Caret,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  "Click 'Delete'"
	Local $sRes   = 'Res:' & "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddCaretInPDF()
	RightClickAddedCaret()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_301()
	Local $TestCaseID = '4.2.301'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Strike Out" on Task Pane.'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The sentence added strike line."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAddStrikeOutBtn()
	SelectSentenceToAddStrikeOut()
	MouseClick('left', 499, 250)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_302()
	Local $TestCaseID = '4.2.302'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Strike Out" on Task Pane.'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The line is red"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAddStrikeOutBtn()
	SelectSentenceToAddStrikeOut()
	MouseClick('left', 499, 250)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_303()
	Local $TestCaseID = '4.2.303'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select a sentence on pageview'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The sentence added strike line."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	MouseClick('left', 499, 250)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_304()
	Local $TestCaseID = '4.2.304'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select a sentence on pageview'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The line is red"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	MouseClick('left', 499, 250)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_305()
	Local $TestCaseID = '4.2.305'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Check default setting"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Color:Red,Opacity:100%"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	MouseClick('left', 499, 250)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sCrossOutPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_306()
	Local $TestCaseID = '4.2.306'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Change the  'Color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The strike line will change the correct color(The line color is green)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sCrossOutPropertiesWnd) Then Return False	
	If Not  ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sCrossOutPropertiesWnd) Then Return False		
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_307()
	Local $TestCaseID = '4.2.307'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &   'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sCrossOutPropertiesWnd) Then Return False
	If Not  ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sCrossOutPropertiesWnd) Then Return False		
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_308()
	Local $TestCaseID = '4.2.308'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &   'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sCrossOutPropertiesWnd) Then Return False
	If Not  ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sCrossOutPropertiesWnd) Then Return False		
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_309()
	Local $TestCaseID = '4.2.309'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &   'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sCrossOutPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sCrossOutPropertiesWnd) Then Return False		
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_311()
	Local $TestCaseID = '4.2.311'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sCrossOutPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sCrossOutPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False		
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sCrossOutPropertiesWnd) Then Return False		
	If Not DoubleClickAddedStrikeOut($TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickTabInWindow($sCrossOutPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sCrossOutPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_314()
	Local $TestCaseID = '4.2.314'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  "Click Right contenet menu"
	Local $sRes   = 'Res:' &   "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedStrikeOut()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_315()
	Local $TestCaseID = '4.2.315'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  "Click 'Properties'"
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedStrikeOut()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_316()
	Local $TestCaseID = '4.2.316'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add stike to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Strike'."
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  "Click 'Delete'"
	Local $sRes   = 'Res:' &   "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddStrikeOutBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedStrikeOut()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_317()
	Local $TestCaseID = '4.2.317'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Underline" on Task Pane.'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The sentence added underline."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAddUnderlineBtn()
	SelectSentenceToAddStrikeOut()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_318()
	Local $TestCaseID = '4.2.318'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Underline" on Task Pane.'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The line is green"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAddUnderlineBtn()
	SelectSentenceToAddStrikeOut()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_319()
	Local $TestCaseID = '4.2.319'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select a sentence on pageview'
	Local $sStep2 = '2:'   &  'Select " Underline" on Task Pane.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The sentence added underline."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_320()
	Local $TestCaseID = '4.2.320'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select a sentence on pageview'
	Local $sStep2 = '2:'   &  'Select " Underline" on Task Pane.'
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The line is green"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_321()
	Local $TestCaseID = '4.2.321'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Color:Red,Opacity:100%"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sUnderlinePropertiesPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_322()
	Local $TestCaseID = '4.2.322'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "'Style' select 'straight'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The underline is change to straight."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeUnderLineStyle($TestCaseID, $sLogFileName1, 'straight') Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	ChangeFocusOfStrikeOut()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_323()
	Local $TestCaseID = '4.2.323'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "'Style' select 'squiggle'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The underline is change to straight."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeUnderLineStyle($TestCaseID, $sLogFileName1, 'squiggle') Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	ChangeFocusOfStrikeOut()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_324()
	Local $TestCaseID = '4.2.324'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "'Change the  'Color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The underline will change the correct color(The line color is green)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sUnderlinePropertiesPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	ChangeFocusOfStrikeOut()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_325()
	Local $TestCaseID = '4.2.325'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sUnderlinePropertiesPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_326()
	Local $TestCaseID = '4.2.326'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('aaa', $TestCaseID, $sLogFileName1,$sUnderlinePropertiesPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_327()
	Local $TestCaseID = '4.2.327'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sUnderlinePropertiesPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	ChangeFocusOfStrikeOut()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_329()
	Local $TestCaseID = '4.2.329'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Double click the 'Underline'."
	Local $sStep3 = '3:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'All content is saved.(Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sUnderlinePropertiesPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sUnderlinePropertiesPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False		
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sUnderlinePropertiesPropertiesWnd) Then Return False
	If Not DoubleClickAddedUnderline($TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickTabInWindow($sUnderlinePropertiesPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sUnderlinePropertiesPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_332()
	Local $TestCaseID = '4.2.332'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedStrikeOut()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_333()
	Local $TestCaseID = '4.2.333'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedStrikeOut()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_334()
	Local $TestCaseID = '4.2.334'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add 'Underline' to one sentence"
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddUnderlineBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedStrikeOut()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_335()
	Local $TestCaseID = '4.2.335'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Highlight" on Task Pane.'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'The sentence added Highlight.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAddHighLightBtn()
	SelectSentenceToAddStrikeOut()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_336()
	Local $TestCaseID = '4.2.336'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Highlight" on Task Pane.'
	Local $sStep2 = '2:'   &  "Select a sentence on pageview"
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'The Highlight is Yellow'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickAddHighLightBtn()
	SelectSentenceToAddStrikeOut()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_337()
	Local $TestCaseID = '4.2.337'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select a sentence on pageview'
	Local $sStep2 = '2:'   &  'Select " Highlight" on Task Pane.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'The sentence added Highlight.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_338()
	Local $TestCaseID = '4.2.338'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select a sentence on pageview'
	Local $sStep2 = '2:'   &  'Select " Highlight" on Task Pane.'
	Local $sStep3 = '3:'   &  "Check the default"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'The Highlight is Yellow'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_339()
	Local $TestCaseID = '4.2.339'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Highlight'."
	Local $sStep3 = '3:'   &  "Check default setting"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'Color:Yellow,Opacity:100%'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sHighlightPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_340()
	Local $TestCaseID = '4.2.340'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Highlight'."
	Local $sStep3 = '3:'   &  "Change the  'Color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will change the correct color(The hightlight color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sHighlightPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sHighlightPropertiesWnd) Then Return False
	ChangeFocusOfStrikeOut()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_341()
	Local $TestCaseID = '4.2.341'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Highlight'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sHighlightPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sHighlightPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_342()
	Local $TestCaseID = '4.2.342'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Highlight'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sHighlightPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sHighlightPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_343()
	Local $TestCaseID = '4.2.343'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Highlight'."
	Local $sStep3 = '3:'   &   "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sHighlightPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sHighlightPropertiesWnd) Then Return False
	ChangeFocusOfStrikeOut()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_345()
	Local $TestCaseID = '4.2.345'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Double click the 'Highlight'."
	Local $sStep3 = '3:'   &   "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' & 'All content is saved.(Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sHighlightPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sHighlightPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sHighlightPropertiesWnd) Then Return False
	If Not DoubleClickAddedHighLight($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sHighlightPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sHighlightPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_348()
	Local $TestCaseID = '4.2.348'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &   "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedCaret()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_349()
	Local $TestCaseID = '4.2.349'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &   "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedCaret()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_350()
	Local $TestCaseID = '4.2.350'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Add Highlight to one sentence'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectSentenceToAddStrikeOut()
	ClickAddHighLightBtn()
	ChangeFocusOfStrikeOut()
	RightClickAddedCaret()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_351()
	Local $TestCaseID = '4.2.351'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Style:Line,Thickness:1,Color:Red,Opacity:100%,Fill Color:Null"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sOvalPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_352To360()
	For $i = 0 to 8
		Local $TestCaseID = '4.2.' & (352 + $i)
		Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
		Local $sStep2 = '2:'   &  "Double click the 'Oval'"
		Local $sStep3 = '3:'   &  "Change 'style' to " & $LINE_STYLE[$i]
		Local $sStep4 = '4:'   &  "Click Ok button"
		Local $sRes   = 'Res:' &  "The Oval display " & $LINE_STYLE[$i] & " Frame."
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		AddOvalInPDF()
		If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
		If Not ChangeLineStyle($TestCaseID, $sLogFileName1, $LINE_STYLE[$i], $sOvalPropertiesWnd) Then Return False	
		If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False
		ChangeFocus1()	
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_361()
	Local $TestCaseID = '4.2.361'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_362()
	Local $TestCaseID = '4.2.362'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('as', $TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_363()
	Local $TestCaseID = '4.2.363'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Thickness display normally.(The Thickness is 6)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	ChangeFocus1()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_364()
	Local $TestCaseID = '4.2.364'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   &  "Change the 'color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The frame color is change to the correct color.(The color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	ChangeFocus1()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_365()
	Local $TestCaseID = '4.2.365'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_366()
	Local $TestCaseID = '4.2.366'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_367()
	Local $TestCaseID = '4.2.367'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   & "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sOvalPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_368()
	Local $TestCaseID = '4.2.368'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   & "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Fill color is correct.(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sOvalPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sOvalPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_369()
	Local $TestCaseID = '4.2.369'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   & "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Choose any color,check in 'No Fill',then click OK"
	Local $sRes   = 'Res:' &  'No color fill in.(No text box color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sOvalPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sOvalPropertiesWnd) Then Return False
	ClickNoFillInBtnInTextPropertiesWnd($sOvalPropertiesWnd)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_371()
	Local $TestCaseID = '4.2.371'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "ble click the 'Oval'."
	Local $sStep3 = '3:'   & "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(the Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sOvalPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sOvalPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sOvalPropertiesWnd) Then Return False	
	If Not DoubleClickAddedOval($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sOvalPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False		
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sOvalPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_373()
	Local $TestCaseID = '4.2.373'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Single click this 'Oval'"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Oval will move.(Oval move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	MovedAddedOval()
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_374()
	Local $TestCaseID = '4.2.374'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	ChangeFocus1()	
	RightClickAddedOval()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_375()
	Local $TestCaseID = '4.2.375'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   & "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	ChangeFocus1()	
	RightClickAddedOval()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_376()
	Local $TestCaseID = '4.2.376'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Oval" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   & "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddOvalInPDF()
	ChangeFocus1()	
	RightClickAddedOval()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_377()
	Local $TestCaseID = '4.2.377'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Style:Line,Thickness:1,Color:Red,Opacity:100%,Fill Color:Null"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sRectanglePropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_378To386()
	For $i = 0 to 8
		Local $TestCaseID = '4.2.' & (378 + $i)
		Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
		Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
		Local $sStep3 = '3:'   &  "Change 'style' to " & $LINE_STYLE[$i]
		Local $sStep4 = '4:'   &  "Click Ok button"
		Local $sRes   = 'Res:' &  "The Oval display " & $LINE_STYLE[$i] & " Frame."
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		AddRectangleInPDF()
		If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
		If Not ChangeLineStyle($TestCaseID, $sLogFileName1, $LINE_STYLE[$i], $sRectanglePropertiesWnd) Then Return False	
		If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False
		ChangeFocus1()	
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_387()
	Local $TestCaseID = '4.2.387'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False		
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_388()
	Local $TestCaseID = '4.2.388'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &   "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('asd', $TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False		
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_389()
	Local $TestCaseID = '4.2.389'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Thickness display normally.(The Thickness is 6)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	ChangeFocus1()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_390()
	Local $TestCaseID = '4.2.390'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Change the 'color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The frame color is change to the correct color.(The color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	ChangeFocus1()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_391()
	Local $TestCaseID = '4.2.391'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &   "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_392()
	Local $TestCaseID = '4.2.392'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_393()
	Local $TestCaseID = '4.2.393'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_394()
	Local $TestCaseID = '4.2.394'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Fill color is correct.(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sRectanglePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_395()
	Local $TestCaseID = '4.2.395'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &   "Choose any color,check in 'No Fill',then click OK"
	Local $sRes   = 'Res:' &  'No color fill in.(No text box color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sRectanglePropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sRectanglePropertiesWnd) Then Return False
	ClickNoFillInBtnInTextPropertiesWnd($sRectanglePropertiesWnd)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_397()
	Local $TestCaseID = '4.2.397'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Rectangle'."
	Local $sStep3 = '3:'   &   "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(the Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sRectanglePropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sRectanglePropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRectanglePropertiesWnd) Then Return False	
	If Not DoubleClickAddedRectangle($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sRectanglePropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sRectanglePropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_399()
	Local $TestCaseID = '4.2.399'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Single click this 'Rectangle'"
	Local $sStep3 = '3:'   &   "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Oval will move.(Oval move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	MovedAddedOval()
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_400()
	Local $TestCaseID = '4.2.400'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   "Right click this annotation"
	Local $sStep3 = '3:'   &   "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	ChangeFocus1()	
	RightClickAddedOval()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_401()
	Local $TestCaseID = '4.2.401'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	ChangeFocus1()	
	RightClickAddedOval()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_402()
	Local $TestCaseID = '4.2.402'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Rectangle" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddRectangleInPDF()
	ChangeFocus1()	
	RightClickAddedOval()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_403()
	Local $TestCaseID = '4.2.403'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Style:Line,Thickness:1,Color:Red,Opacity:100%,Start:None, End:None,Fill Color:Null"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sLinePropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_404To410()
	For $i = 0 to 6
		Local $TestCaseID = '4.2.' & (404 + $i)
		Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
		Local $sStep2 = '2:'   &  "Double click the 'Line'."
		Local $sStep3 = '3:'   &  "Change 'style' to " & $LINE_STYLE2[$i]
		Local $sStep4 = '4:'   &  "Click Ok button"
		Local $sRes   = 'Res:' &  "The Oval display " & $LINE_STYLE2[$i] & " Frame."
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		AddLineInPDF()
		If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
		If Not ChangeLineStyle2($TestCaseID, $sLogFileName1, $LINE_STYLE2[$i], $sLinePropertiesWnd) Then Return False	
		If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False
		ChangeFocus1()	
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_413()
	Local $TestCaseID = '4.2.413'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Click Ok button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_414()
	Local $TestCaseID = '4.2.414'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   & "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('aa', $TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_415()
	Local $TestCaseID = '4.2.415'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Thickness display normally.(The Thickness is 6)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_416()
	Local $TestCaseID = '4.2.416'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   & "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Change the 'color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The frame color is change to the correct color.(The color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()		
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_417()
	Local $TestCaseID = '4.2.417'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_418()
	Local $TestCaseID = '4.2.418'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_419()
	Local $TestCaseID = '4.2.419'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   & "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_420()
	Local $TestCaseID = '4.2.420'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   & "'Start' select any option"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The line will change and correct.(The start arrow is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeLineArrowStart($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_421()
	Local $TestCaseID = '4.2.421'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   & "'End' select any option"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The line will change and correct.(The start arrow is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeLineArrowEnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_422()
	Local $TestCaseID = '4.2.422'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Click 'Fill Color' options"
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The Fill color is correct.(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sLinePropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_423()
	Local $TestCaseID = '4.2.423'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Click 'Fill Color' options"
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Choose any color,check in 'No Fill',then click OK"
	Local $sRes   = 'Res:' &  'No color fill in.(No text box color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sLinePropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sLinePropertiesWnd) Then Return False
	ClickNoFillInBtnInTextPropertiesWnd($sLinePropertiesWnd)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_425()
	Local $TestCaseID = '4.2.425'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Click 'Fill Color' options"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(the Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sLinePropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sLinePropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sLinePropertiesWnd) Then Return False	
	ChangeFocus1()
	If Not DoubleClickAddedLine($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sLinePropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sLinePropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_427()
	Local $TestCaseID = '4.2.427'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  'Single click this Line'
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Oval will move.(Oval move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	MovedAddedLine()
	ChangeFocus1()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_428()
	Local $TestCaseID = '4.2.428'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   & "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	ChangeFocus1()
	RightClickAddedLine()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_429()
	Local $TestCaseID = '4.2.429'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	ChangeFocus1()
	RightClickAddedLine()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_430()
	Local $TestCaseID = '4.2.430'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Line" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddLineInPDF()
	ChangeFocus1()
	RightClickAddedLine()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_431()
	Local $TestCaseID = '4.2.431'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Style:Line,Thickness:1,Color:Red,Opacity:100%,Fill Color:Null"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF()
	ChangeFocus1()
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPolygonPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_432To440()
	For $i = 0 to 8
		Local $TestCaseID = '4.2.' & (432 + $i)
		Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
		Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
		Local $sStep3 = '3:'   &  "Change 'style' to " & $LINE_STYLE[$i]
		Local $sStep4 = '4:'   &  "Click Ok button"
		Local $sRes   = 'Res:' &  "The Oval display " & $LINE_STYLE[$i] & " Frame."
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		AddPolygonInPDF()
		If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
		If Not ChangeLineStyle($TestCaseID, $sLogFileName1, $LINE_STYLE[$i], $sPolygonPropertiesWnd) Then Return False	
		If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False
		ChangeFocus1()	
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_441()
	Local $TestCaseID = '4.2.441'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, _ 
		$sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False		
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_442()
	Local $TestCaseID = '4.2.442'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('asd', $TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, _ 
		$sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False		
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_443()
	Local $TestCaseID = '4.2.443'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &   'The Thickness display normally.(The Thickness is 6)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_444()
	Local $TestCaseID = '4.2.444'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Change the 'color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The frame color is change to the correct color.(The color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_445()
	Local $TestCaseID = '4.2.445'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   & "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_446()
	Local $TestCaseID = '4.2.446'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_447()
	Local $TestCaseID = '4.2.447'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_448()
	Local $TestCaseID = '4.2.448'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &   'The Fill color is correct.(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sPolygonPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_449()
	Local $TestCaseID = '4.2.449'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Choose any color,check in 'No Fill',then click OK"
	Local $sRes   = 'Res:' &  'No color fill in.(No text box color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sPolygonPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sPolygonPropertiesWnd) Then Return False
	ClickNoFillInBtnInTextPropertiesWnd($sPolygonPropertiesWnd)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_451()
	Local $TestCaseID = '4.2.451'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon'."
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(the Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sPolygonPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sPolygonPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonPropertiesWnd) Then Return False	
	If Not DoubleClickAddedPolygon($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sPolygonPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPolygonPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_453()
	Local $TestCaseID = '4.2.453'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  'Single click this Polygon'
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'The Oval will move.(Oval move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	MouseClickDrag('left',448, 250,$RIGHT_LOWER_CORNER_POSITION[0],$RIGHT_LOWER_CORNER_POSITION[1])
	ChangeFocus1()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_454()
	Local $TestCaseID = '4.2.454'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  'Right click this annotation'
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	RightClickAddedPolygon()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_455()
	Local $TestCaseID = '4.2.455'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  'Right click this annotation'
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	RightClickAddedPolygon()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_456()
	Local $TestCaseID = '4.2.456'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  'Right click this annotation'
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonInPDF() 
	ChangeFocus1()	
	RightClickAddedPolygon()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_457()
	Local $TestCaseID = '4.2.457'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Style:Line,Thickness:1,Color:Red,Opacity:100%,Start:None,End:None,Fill Color:Null"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPolygonLinePropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_458To464()
	For $i = 0 to 6
		Local $TestCaseID = '4.2.' & (458 + $i)
		Local $sStep1 = '1:'   &   'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
		Local $sStep2 = '2:'   &  "Double click the 'Line'."
		Local $sStep3 = '3:'   &  "Change 'style' to " & $LINE_STYLE2[$i]
		Local $sStep4 = '4:'   &  "Click Ok button"
		Local $sRes   = 'Res:' &  "The Polygon Lines display " & $LINE_STYLE2[$i] & " Frame."
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		AddPolygonLinesInPDF()
		If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
		If Not ChangeLineStyle2($TestCaseID, $sLogFileName1, $LINE_STYLE2[$i], $sPolygonLinePropertiesWnd) Then Return False	
		If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False
		ChangeFocus1()	
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_465()
	Local $TestCaseID = '4.2.465'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_466()
	Local $TestCaseID = '4.2.466'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &   "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('asd', $TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_467()
	Local $TestCaseID = '4.2.467'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Thickness display normally.(The Thickness is 6)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_468()
	Local $TestCaseID = '4.2.468'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &   "Change the 'color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'The frame color is change to the correct color.(The color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_469()
	Local $TestCaseID = '4.2.469'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_470()
	Local $TestCaseID = '4.2.470'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_471()
	Local $TestCaseID = '4.2.471'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_472()
	Local $TestCaseID = '4.2.472'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "'Start' select any option"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The line will change and correct.(The start arrow is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeLineArrowStart_Ex($TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_473()
	Local $TestCaseID = '4.2.473'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "'End' select any option"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The line will change and correct.(The start arrow is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeLineArrowEnd_EX($TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_474()
	Local $TestCaseID = '4.2.474'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Choose any color,then click OK"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The line will change and correct.(The start arrow is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sPolygonLinePropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sPolygonLinePropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_477()
	Local $TestCaseID = '4.2.477'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Polygon Lines'."
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(the Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sPolygonLinePropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sPolygonLinePropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPolygonLinePropertiesWnd) Then Return False	
	ChangeFocus1()	
	If Not DoubleClickAddedPolygonLines($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sPolygonLinePropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPolygonLinePropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_479()
	Local $TestCaseID = '4.2.479'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  'Single click this Polygon Lines'
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Polygon Lines will move.(Polygon Lines move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	MouseClickDrag('left',448, 250,$RIGHT_LOWER_CORNER_POSITION[0],$RIGHT_LOWER_CORNER_POSITION[1])
	ChangeFocus1()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_480()
	Local $TestCaseID = '4.2.480'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   'Right click this annotation'
	Local $sStep3 = '3:'   &   "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	RightClickAddedPolygon()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_481()
	Local $TestCaseID = '4.2.481'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   'Right click this annotation'
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	RightClickAddedPolygon()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_482()
	Local $TestCaseID = '4.2.481'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Polygon Lines" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   'Right click this annotation'
	Local $sStep3 = '3:'   &   "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPolygonLinesInPDF()
	ChangeFocus1()	
	RightClickAddedPolygon()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_483()
	Local $TestCaseID = '4.2.483'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Check default setting"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "Thickness:1,Color:Red,Opacity:100%"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPencilMarkPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_484()
	Local $TestCaseID = '4.2.484'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_485()
	Local $TestCaseID = '4.2.485'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' & 'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('qwe', $TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_486()
	Local $TestCaseID = '4.2.486'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &   "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Thickness display normally.(The Thickness is 6)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	ChangeFocus1()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_487()
	Local $TestCaseID = '4.2.487'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &   "Change the 'color'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame color is change to the correct color.(The color is green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	ChangeFocus1()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_488()
	Local $TestCaseID = '4.2.488'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_489()
	Local $TestCaseID = '4.2.489'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &   "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('asd', $TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_490()
	Local $TestCaseID = '4.2.490'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "Double click the 'Line'."
	Local $sStep3 = '3:'   &    "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sPencilMarkPropertiesWnd) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	ChangeFocus1()	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_492()
	Local $TestCaseID = '4.2.492'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "sigle click the 'Line'."
	Local $sStep3 = '3:'   &    "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Change the Author,Subject and Content then save.Close properties dialog  then check it again."
	Local $sRes   = 'Res:' &  'All content is saved.(the Author,Subject and Content is test)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sPencilMarkPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sPencilMarkPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sPencilMarkPropertiesWnd) Then Return False	
	If Not DoubleClickAddedPencilMark($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sPencilMarkPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPencilMarkPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_494()
	Local $TestCaseID = '4.2.494'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &  "sigle click the 'Line'."
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   'The Line will move.(Line move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	MovedAddedLine()
	ChangeFocus1()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_495()
	Local $TestCaseID = '4.2.495'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	RightClickAddedLine()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_496()
	Local $TestCaseID = '4.2.496'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   "Right click this annotation"
	Local $sStep3 = '3:'   &   "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	RightClickAddedLine()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer4_2_497()
	Local $TestCaseID = '4.2.497'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Pencil Mark" on Task Pane, add it to pageview.'
	Local $sStep2 = '2:'   &   "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no annotation)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddPencilMarkInPDF()
	ChangeFocus1()
	RightClickAddedLine()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hViewinPageView, '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
;  ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)








